package com.ymk.base.config;

import com.ymk.core.constants.SysConstants;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;

public class ServerData implements InitializingBean {

    @Value("${env}}")
    private String env;

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println(env + " ---------------------------------");
        SysConstants.SERVER_ENV = env;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }
}
